#ifndef QKASALISTA_H
#define QKASALISTA_H

#include "qmybaseformwidget.h"
#include "ui_qkasalista.h"
#include <QStandardItemModel>
#include <QItemSelection>

class QKasaLista : public QMyBaseFormWidget
{
	Q_OBJECT

public:
	QKasaLista(QWidget *parent = 0);
	~QKasaLista();
	void lista(const QString& nameSearch);
	void lista_detail(const QString& nameSearch);
	int getSelectedId(){return m_selectedText.toInt();}
	virtual void pressEscape();
private:
	Ui::QKasaListaClass ui;
	QStandardItemModel *model;
	QHeaderView *header;
	QStandardItemModel *model2;
	QHeaderView *header2;
	QString m_selectedText;
private slots:
	void selectionChanged(QModelIndex modelX, QModelIndex modelY );
signals:
	void closeW();

};

#endif // QKASALISTA_H
